﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace SystemContainer.Models
{
    public class Photo
    {
        public int PhotoID { get; set; }
        public int ScecCityID { get; set; }
        public string Name { get; set; }
        public int scenicLocationID { get; set; }
        public double Longtitude { get; set; }
        public double Latitude { get; set; }
        public virtual ScenicLocation scenicLocation { get; set; }
        public string dir { get; set; }

        public Photo()
        {
            if (ScecCityID == 1)
                dir = Constants.NYphotoPath + Name;
            else if (ScecCityID == 2)
                dir = Constants.LAphotoPath + Name;
            else
                dir = "";
        }
    }
}